<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%agent}}".
 *
 * @property integer $id
 * @property integer $store_id
 * @property integer $account
 * @property string $name
 * @property string $money
 * @property string $discount
 * @property integer $status
 * @property integer $is_delete
 * @property integer $create_time
 */
class Agent extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%agent}}';
    }

    /**
     * @inheritdoc
     */

    public function rules()
    {
        return [
            [['store_id', 'state', 'is_delete','pingtai_id'], 'integer'],
            [['account','pwd'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'account'=>'代理商账号',
            'pwd'=>'代理商密码',
            'create_time' => '创建时间',
            'store_id' => '店铺ID',
            'state'=>'账号状态',
            'pingtai_id'=>'平台id',
            'is_delete' => '是否已删除',

        ];
    }
}
